[INFO] cloning repository https://github.com/zly2006/rust-dynamic-plugin
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zly2006/rust-dynamic-plugin" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzly2006%2Frust-dynamic-plugin", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzly2006%2Frust-dynamic-plugin'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 84860c726f4607bab2a294da46fb4fdebd1a0b16
[INFO] fixing zly2006/rust-dynamic-plugin against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzly2006%2Frust-dynamic-plugin" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/zly2006/rust-dynamic-plugin
[INFO] finished tweaking git repo https://github.com/zly2006/rust-dynamic-plugin
[INFO] tweaked toml for git repo https://github.com/zly2006/rust-dynamic-plugin written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/zly2006/rust-dynamic-plugin on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/zly2006/rust-dynamic-plugin already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] ac565253d31b3895125295bd4fb4d16a2d3be1f977e38f63154ac61f7b3abdd5
[INFO] running `Command { std: "docker" "start" "ac565253d31b3895125295bd4fb4d16a2d3be1f977e38f63154ac61f7b3abdd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ac565253d31b3895125295bd4fb4d16a2d3be1f977e38f63154ac61f7b3abdd5" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ac565253d31b3895125295bd4fb4d16a2d3be1f977e38f63154ac61f7b3abdd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ac565253d31b3895125295bd4fb4d16a2d3be1f977e38f63154ac61f7b3abdd5" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking unicode-ident v1.0.18
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]     Checking libloading v0.8.8
[INFO] [stderr]     Checking rust-dynamic-plugin v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking quote v1.0.40
[INFO] [stderr]     Checking syn v2.0.104
[INFO] [stderr]    Compiling proc-macro-error-attr2 v2.0.0
[INFO] [stderr]     Checking proc-macro-error2 v2.0.1
[INFO] [stderr]     Checking macros v0.1.0 (/opt/rustwide/workdir/macros)
[INFO] [stderr]     Checking host v0.1.0 (/opt/rustwide/workdir/host)
[INFO] [stderr] item_impl:
[INFO] [stderr] impl MyPlugin for MyPluginImpl
[INFO] [stderr] {
[INFO] [stderr]     fn print_message(& self) { println! ("MyPlugin: Hello from ()!"); } fn
[INFO] [stderr]     pass_int(& self, value : i32) -> i32
[INFO] [stderr]     { println! ("MyPlugin: Received value: {}", value); value + 1 } fn
[INFO] [stderr]     pass_str(& self, value : & str) -> String
[INFO] [stderr]     {
[INFO] [stderr]         println! ("MyPlugin: Received string: {}", value); format!
[INFO] [stderr]         ("{} - processed by MyPlugin", value)
[INFO] [stderr]     }
[INFO] [stderr] }
[INFO] [stderr] Found function: print_message
[INFO] [stderr] Splitting method: MyPluginImpl::print_message
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_print_message
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl) -> ()
[INFO] [stderr] Found function: pass_int
[INFO] [stderr] Splitting method: MyPluginImpl::pass_int
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_pass_int
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl, value : i32
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl, i32) -> i32
[INFO] [stderr] Found function: pass_str
[INFO] [stderr] Splitting method: MyPluginImpl::pass_str
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_pass_str
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl, value : & str
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl, & str) -> String
[INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe
[INFO] [stdout]   --> host/src/lib.rs:23:31
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn pass_str(&self, value: &str) -> String {
[INFO] [stdout]    |                               ^^^^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider using `*const u8` and a length instead
[INFO] [stdout]    = note: string slices have no C equivalent
[INFO] [stdout]    = note: `#[warn(improper_ctypes_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] item_impl:
[INFO] [stderr] impl MyPlugin for MyPluginImpl
[INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe
[INFO] [stdout]   --> host/src/lib.rs:23:40
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn pass_str(&self, value: &str) -> String {
[INFO] [stdout]    |                                        ^^^^^^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
[INFO] [stdout]    = note: this struct has unspecified layout
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] {
[INFO] [stderr]     fn print_message(& self) { println! ("MyPlugin: Hello from ()!"); } fn
[INFO] [stderr]     pass_int(& self, value : i32) -> i32
[INFO] [stderr]     { println! ("MyPlugin: Received value: {}", value); value + 1 } fn
[INFO] [stderr]     pass_str(& self, value : & str) -> String
[INFO] [stderr]     {
[INFO] [stderr]         println! ("MyPlugin: Received string: {}", value); format!
[INFO] [stderr]         ("{} - processed by MyPlugin", value)
[INFO] [stderr]     }
[INFO] [stderr] }
[INFO] [stderr] Found function: print_message
[INFO] [stderr] Splitting method: MyPluginImpl::print_message
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_print_message
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl) -> ()
[INFO] [stderr] Found function: pass_int
[INFO] [stderr] Splitting method: MyPluginImpl::pass_int
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_pass_int
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl, value : i32
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl, i32) -> i32
[INFO] [stderr] Found function: pass_str
[INFO] [stderr] Splitting method: MyPluginImpl::pass_str
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_pass_str
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl, value : & str
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl, & str) -> String
[INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe
[INFO] [stdout]   --> host/src/lib.rs:23:31
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn pass_str(&self, value: &str) -> String {
[INFO] [stdout]    |                               ^^^^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider using `*const u8` and a length instead
[INFO] [stdout]    = note: string slices have no C equivalent
[INFO] [stdout]    = note: `#[warn(improper_ctypes_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe
[INFO] [stdout]   --> host/src/lib.rs:23:40
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn pass_str(&self, value: &str) -> String {
[INFO] [stdout]    |                                        ^^^^^^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
[INFO] [stdout]    = note: this struct has unspecified layout
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking plugin v0.1.0 (/opt/rustwide/workdir/plugin)
[INFO] [stdout] error[E0432]: unresolved import `host::def`
[INFO] [stdout]  --> plugin/src/lib.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use host::def::MyPlugin;
[INFO] [stdout]   |           ^^^ could not find `def` in `host`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] item_impl:
[INFO] [stderr] impl MyPlugin for MyPluginImpl
[INFO] [stderr] {
[INFO] [stderr]     fn print_message(& self) { println! ("MyPlugin: Hello from ()!"); } fn
[INFO] [stderr]     pass_int(& self, value : i32) -> i32
[INFO] [stderr]     { println! ("MyPlugin: Received value: {}", value); value + 1 } fn
[INFO] [stderr]     pass_str(& self, value : & str) -> String
[INFO] [stderr]     {
[INFO] [stderr]         println! ("MyPlugin: Received string: {}", value); format!
[INFO] [stderr]         ("{} - processed by MyPlugin", value)
[INFO] [stderr]     }
[INFO] [stderr] }
[INFO] [stderr] Found function: print_message
[INFO] [stderr] Splitting method: MyPluginImpl::print_message
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_print_message
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl) -> ()
[INFO] [stderr] Found function: pass_int
[INFO] [stderr] Splitting method: MyPluginImpl::pass_int
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_pass_int
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl, value : i32
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl, i32) -> i32
[INFO] [stderr] Found function: pass_str
[INFO] [stderr] Splitting method: MyPluginImpl::pass_str
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_pass_str
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl, value : & str
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl, & str) -> String
[INFO] [stderr] item_impl:
[INFO] [stderr] impl MyPlugin for MyPluginImpl
[INFO] [stderr] {
[INFO] [stderr]     fn print_message(& self) { println! ("MyPlugin: Hello from ()!"); } fn
[INFO] [stderr]     pass_int(& self, value : i32) -> i32
[INFO] [stderr]     { println! ("MyPlugin: Received value: {}", value); value + 1 } fn
[INFO] [stderr]     pass_str(& self, value : & str) -> String
[INFO] [stderr]     {
[INFO] [stderr]         println! ("MyPlugin: Received string: {}", value); format!
[INFO] [stderr]         ("{} - processed by MyPlugin", value)
[INFO] [stderr]     }
[INFO] [stderr] }
[INFO] [stderr] Found function: print_message
[INFO] [stdout] warning: found module declaration for lib.rs
[INFO] [stdout]  --> host/src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub mod lib;
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: lib.rs is the root of this crate's library target
[INFO] [stdout]   = help: to refer to it from other targets, use the library's name as the path
[INFO] [stdout]   = note: `#[warn(special_module_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] Splitting method: MyPluginImpl::print_message
[INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe
[INFO] [stdout]   --> host/src/lib.rs:23:31
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn pass_str(&self, value: &str) -> String {
[INFO] [stdout]    |                               ^^^^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider using `*const u8` and a length instead
[INFO] [stdout]    = note: string slices have no C equivalent
[INFO] [stdout]    = note: `#[warn(improper_ctypes_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_print_message
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl) -> ()
[INFO] [stderr] Found function: pass_int
[INFO] [stderr] Splitting method: MyPluginImpl::pass_int
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_pass_int
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl, value : i32
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl, i32) -> i32
[INFO] [stderr] error: could not compile `plugin` (lib) due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe
[INFO] [stdout]   --> host/src/lib.rs:23:40
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn pass_str(&self, value: &str) -> String {
[INFO] [stdout]    |                                        ^^^^^^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
[INFO] [stdout]    = note: this struct has unspecified layout
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] Found function: pass_str
[INFO] [stderr] Splitting method: MyPluginImpl::pass_str
[INFO] [stderr] Generated function name: __plugin_api_MyPlugin_MyPluginImpl_pass_str
[INFO] [stderr] Generated function args: self_ : & MyPluginImpl, value : & str
[INFO] [stderr] Generated function signature: unsafe extern fn(& MyPluginImpl, & str) -> String
[INFO] [stdout] warning: found module declaration for lib.rs
[INFO] [stdout]  --> host/src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub mod lib;
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: lib.rs is the root of this crate's library target
[INFO] [stdout]   = help: to refer to it from other targets, use the library's name as the path
[INFO] [stdout]   = note: `#[warn(special_module_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `host::def`
[INFO] [stdout]  --> plugin/src/lib.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use host::def::MyPlugin;
[INFO] [stdout]   |           ^^^ could not find `def` in `host`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe
[INFO] [stdout]   --> host/src/lib.rs:23:31
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn pass_str(&self, value: &str) -> String {
[INFO] [stdout]    |                               ^^^^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider using `*const u8` and a length instead
[INFO] [stdout]    = note: string slices have no C equivalent
[INFO] [stdout]    = note: `#[warn(improper_ctypes_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe
[INFO] [stdout]   --> host/src/lib.rs:23:40
[INFO] [stdout]    |
[INFO] [stdout] 23 |     fn pass_str(&self, value: &str) -> String {
[INFO] [stdout]    |                                        ^^^^^^ not FFI-safe
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
[INFO] [stdout]    = note: this struct has unspecified layout
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `plugin` (lib test) due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "ac565253d31b3895125295bd4fb4d16a2d3be1f977e38f63154ac61f7b3abdd5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ac565253d31b3895125295bd4fb4d16a2d3be1f977e38f63154ac61f7b3abdd5", kill_on_drop: false }`
[INFO] [stdout] ac565253d31b3895125295bd4fb4d16a2d3be1f977e38f63154ac61f7b3abdd5
